package kse;

import java.util.Scanner;

public class J05CreditCard {

	public static void main(String[] args) {
		// 신용카드 종류,은행정보출력
		//변수선언
		int mycard=0;
		String result="";
		Scanner sc=null;
		int cardno1=0,cardno2=0;
		//숫자 입력및 정보 조회
		System.out.println("신용카드번호를 입력하세요");
		sc=new Scanner(System.in);
		mycard=sc.nextInt();
		cardno1=mycard/10000;//둘째자리까지
		cardno2=mycard/100000;//첫째자리까지
		
		
		
if(cardno1==35){		
	switch(mycard){	
		case 356317:result="JCB농협카드";break;
		case 356901:result="신한카드";break;
		case 356912:result="kb카드";break;
		default:result="잘못된카드번호";
	}
}else if(cardno2==4){
	
}else if (cardno2==5){
	
}
		//결과출력 
		System.out.println(mycard);
		System.out.println(mycard/10);
		System.out.println(mycard/100);
		System.out.println(mycard/1000);
		System.out.println(mycard/10000);
		System.out.println(result);
		sc.close();
	}

}
         